package com.platform.event.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "spring.platform.event")
public class EventProperties {

	private String scan;
	//是否开启，默认不开启
	private boolean enable;
	
	private boolean distribute_lock;
	
	private Long expire_time=120l;
	
	private Long thread_timeout=60l;
	
	public Long getThread_timeout() {
		return thread_timeout;
	}
	public void setThread_timeout(Long thread_timeout) {
		this.thread_timeout = thread_timeout;
	}
	public Long getExpire_time() {
		return expire_time;
	}
	public void setExpire_time(Long expire_time) {
		this.expire_time = expire_time;
	}
	public boolean isDistribute_lock() {
		return distribute_lock;
	}
	public void setDistribute_lock(boolean distribute_lock) {
		this.distribute_lock = distribute_lock;
	}
	private String prefix;
	
	public String getScan() {
		return scan;
	}
	public void setScan(String scan) {
		this.scan = scan;
	}
	public boolean isEnable() {
		return enable;
	}
	public void setEnable(boolean enable) {
		this.enable = enable;
	}
	public String getPrefix() {
		return prefix;
	}
	public void setPrefix(String eventPrefix) {
		this.prefix = eventPrefix;
	}
	
	
}
